package com.yonyougov.devops.cruxcisupport.appenv.dto.port;

import com.yonyougov.devops.fwc.api.dto.BaseRequestDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigInteger;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "修改环境映射端口")
public class AppEnvPortUpdateRequestDto extends BaseRequestDto {
    @NotNull
    @ApiModelProperty(required = true, name = "主键")
    private BigInteger id;

    @ApiModelProperty(required = true, name = "外部映射端口")
    private Integer mappingPort;

    @NotEmpty
    @ApiModelProperty(required = true, name = "名称")
    private String name;

    @NotNull
    @ApiModelProperty(required = true, name = "应用内部端口")
    private Integer port;

    @NotNull
    @ApiModelProperty(required = true, name = "应用环境的主键")
    private BigInteger appEnvId;
}
